#ifndef ENTIER_H
#define ENTIER_H

#include "Constante.h"
#include "NonComplexe.h"
#include <string>
#include <sstream>

class Entier : public NonComplexe
{
        int valeur;
public:
    Entier(int);

    Constante* operator+(const Constante&)const;
    Constante* operator*(const Constante&)const;
    Constante* operator-(const Constante&)const;
    Constante* operator/(const Constante&)const;
    Constante* operator-()const;


    Constante* operator%(const Constante&)const;
    Constante* operator!()const;

    std::string print()const {
        std::stringstream ss;
        ss << valeur;
        return ss.str();
    }

    int getVal()const{return valeur;}
};

#endif // ENTIER_H
